export const initFormItems = (fieldList) => {
  return [
    {
      prop: 'spuNo',
      label: 'SPU编码',
      type: 'input'
    },
    {
      prop: 'skuNo',
      label: 'SKU编码',
      type: 'input'
    },
    {
      prop: 'enumSkuField',
      label: '修改字段名称',
      type: 'select',
      filterable: true,
      options: fieldList
    },
    {
      prop: 'createTime',
      label: '修改日期',
      type: 'datePicker',
      datePickerType: 'datetimerange',
      timeKeys: ['startTime', 'endTime']
    },
  ]
}
// 列表表头
export const TABLE_COLUMNS = [
  {
    title: 'SPU编码',
    key: 'spuNo',
  },
  {
    title: 'SKU编码',
    key: 'skuNo',
  },
  {
    title: '商品名称',
    key: 'productName',
    width: '150'
  },
  {
    title: '规格',
    key: 'specDetail',
  },
  {
    title: '计量单位',
    key: 'unitName',
  },
  {
    title: '修改字段名称',
    key: 'enumSkuFieldName',
  },
  {
    title: '原值',
    key: 'oldValue',
  },
  {
    title: '现值',
    key: 'newValue',
  },
  {
    title: '修改日期',
    key: 'createTime',
  },
  {
    title: '修改人',
    key: 'operName',
  },
  {
    title: '修改人部门',
    key: 'opeDepartmentName',
  },
]
